import request from '@/utils/request'

// 查询接收方信息列表
export function listExternalTransferAccount(query) {
  return request({
    url: '/ecs/externalTransferAccount/list',
    method: 'get',
    params: query
  })
}

// 查询接收方信息详细
export function getExternalTransferAccount(id) {
  return request({
    url: '/ecs/externalTransferAccount/' + id,
    method: 'get'
  })
}

// 新增接收方信息
export function addExternalTransferAccount(data) {
  return request({
    url: '/ecs/externalTransferAccount',
    method: 'post',
    data: data
  })
}

// 修改接收方信息
export function updateExternalTransferAccount(data) {
  return request({
    url: '/ecs/externalTransferAccount',
    method: 'put',
    data: data
  })
}

// 删除接收方信息
export function delExternalTransferAccount(id) {
  return request({
    url: '/ecs/externalTransferAccount/' + id,
    method: 'delete'
  })
}
